#include<stdio.h> 
int main()
{
int year, days;
scanf("%d",&year);
if((year%4==0)&&(year%100!=0)||(year%400==0))
days=29;
else 
{
days=28;}
printf("days=%d",days);
return 0;
}
